﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Project_1
{
    abstract class TireDecorator : TireSpecs
    {
        Tire tireComponent = null;

        protected TireDecorator(Tire tire)
        {
            tireComponent = tire;
        }

        public virtual bool CheckTireFit(double h1)
        {
            return false;
        }

        public double CalculateSpeed(double factorySpeed, double factoryRevs, double newRevs, double newCircum)
        {
            double newSpeed = Math.Round(factorySpeed + ((factoryRevs - newRevs) / (5280 * 12 / newCircum) * 60), 4);
            return newSpeed;
        }

        public abstract bool CheckSpeedDisplay(double spd1, double spd2);
    }
}
